package com.smart.campus.interfaces;

import com.smart.campus.dto.AttendanceTime;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface AttendanceTimeServiceApi {
    @RequestMapping(value = "findList")
    public List<AttendanceTime> findList();
    @RequestMapping(value = "addAtt")
    public void addAtt(@RequestBody AttendanceTime attendanceTime);

    @RequestMapping(value = "delAtt")
    public void delAtt(@RequestParam(value = "id")Integer id);

    @RequestMapping(value = "findAttById")
    public AttendanceTime findAttById(@RequestParam(value = "id")Integer id);
    @RequestMapping(value = "update")
    public void update(@RequestBody AttendanceTime attendanceTime);
}
